package com.simon.seckill.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class SystemConf {

    @Value("${ip_black_times}")
    private Integer ipBlackTimes;

    @Value("${ip_black_seconds}")
    private Integer ipBlackSeconds;

    @Value("${user_black_times}")
    private Integer userBlackTimes;

    @Value("${user_black_seconds}")
    private Integer userBlackSeconds;

    public Integer getIpBlackTimes() {
        return ipBlackTimes;
    }

    public Integer getIpBlackSeconds() {
        return ipBlackSeconds;
    }

    public Integer getUserBlackTimes() {
        return userBlackTimes;
    }

    public Integer getUserBlackSeconds() {
        return userBlackSeconds;
    }
}
